package com.zhongxi.guoyuan.entity.pay;

import org.json.JSONObject;

/**
 * Created by Administrator on 2016/12/9.
 */

public class PayAliPayData {

    private String partner;
    private String seller;
    private String rsaPrivate;

    public String getPartner() {
        return partner;
    }

    public void setPartner(String partner) {
        this.partner = partner;
    }

    public String getSeller() {
        return seller;
    }

    public void setSeller(String seller) {
        this.seller = seller;
    }

    public String getRsaPrivate() {
        return rsaPrivate;
    }

    public void setRsaPrivate(String rsaPrivate) {
        this.rsaPrivate = rsaPrivate;
    }

    @Override
    public String toString() {
        return "PayAliPayData{" +
                "partner='" + partner + '\'' +
                ", seller='" + seller + '\'' +
                ", rsaPrivate='" + rsaPrivate + '\'' +
                '}';
    }

    public static PayAliPayData parseObject(JSONObject object) {
        PayAliPayData aliPayData = new PayAliPayData();
        aliPayData.setPartner(object.optString("partner"));
        aliPayData.setSeller(object.optString("seller"));
        aliPayData.setRsaPrivate(object.optString("rsaPrivate"));
        return aliPayData;
    }
}
